﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.supplyPlan
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int supplyPlanId=(Convert.ToInt32(strid));
					ShowInfo(supplyPlanId);
				}
			}
		}
		
	private void ShowInfo(int supplyPlanId)
	{
		Maticsoft.BLL.supplyPlan bll=new Maticsoft.BLL.supplyPlan();
		Maticsoft.Model.supplyPlan model=bll.GetModel(supplyPlanId);
		this.lblsupplyPlanId.Text=model.supplyPlanId.ToString();
		this.lblpurchaseid.Text=model.purchaseid;
		this.lblproid.Text=model.proid;
		this.lblprojectId.Text=model.projectId.ToString();
		this.lblbidid.Text=model.bidid;
		this.lblusework.Text=model.usework;
		this.lblsupplyDate.Text=model.supplyDate.ToString();
		this.lblmid.Text=model.mid.ToString();
		this.lbltechnicalDataStatus.Text=model.technicalDataStatus;
		this.lbltechnicalDataStatusDate.Text=model.technicalDataStatusDate.ToString();
		this.lblsupplyDateStatus.Text=model.supplyDateStatus;
		this.lblsupplyDateStatusDate.Text=model.supplyDateStatusDate.ToString();
		this.lblarrivalCount.Text=model.arrivalCount.ToString();
		this.lblcontractdate.Text=model.contractdate.ToString();
		this.lblfristCheckedCount.Text=model.fristCheckedCount.ToString();
		this.lblinstoreCount.Text=model.instoreCount.ToString();
		this.lblarrivalEvaluationStatus.Text=model.arrivalEvaluationStatus;
		this.lblarrivalEvaluationStatusDate.Text=model.arrivalEvaluationStatusDate.ToString();
		this.lbloutstoreCount.Text=model.outstoreCount.ToString();
		this.lblinstallationStatus.Text=model.installationStatus;
		this.lblinstallationStatusDate.Text=model.installationStatusDate.ToString();
		this.lblputOperationStatus.Text=model.putOperationStatus;
		this.lblputOperationStatusDate.Text=model.putOperationStatusDate.ToString();
		this.lblputOperationEvaluationStaus.Text=model.putOperationEvaluationStaus;
		this.lblputOperationEvaluationStausDate.Text=model.putOperationEvaluationStausDate.ToString();
		this.lblwarrantyStatus.Text=model.warrantyStatus;
		this.lblwarrantyStatusDate.Text=model.warrantyStatusDate.ToString();
		this.lblwinBid.Text=model.winBid;
		this.lblwarrantyEvaluationStaus.Text=model.warrantyEvaluationStaus;
		this.lblwarrantyEvaluationStausDate.Text=model.warrantyEvaluationStausDate.ToString();
		this.lblsourceProid.Text=model.sourceProid;
		this.lblsourceProjectId.Text=model.sourceProjectId.ToString();
		this.lblsourceProjectName.Text=model.sourceProjectName;
		this.lblequipmentManage.Text=model.equipmentManage;
		this.lblsid.Text=model.sid.ToString();
		this.lblconfirmDateWarn.Text=model.confirmDateWarn;
		this.lblwasteCount.Text=model.wasteCount.ToString();
		this.lblrealSupplyDate.Text=model.realSupplyDate.ToString();
		this.lblwarrantyTime.Text=model.warrantyTime;
		this.lblsettlementTimeWarn.Text=model.settlementTimeWarn;
		this.lblcoordinate.Text=model.coordinate;
		this.lbldeviceproductionstate.Text=model.deviceproductionstate;
		this.lblremark.Text=model.remark;
		this.lbluser_id.Text=model.user_id.ToString();
		this.lblsupplyPlanType.Text=model.supplyPlanType;

	}


    }
}
